\hypertarget{ConsoleTable_8h}{
\subsection{include/ConsoleTable.h File Reference}
\label{ConsoleTable_8h}\index{include/ConsoleTable.h@{include/ConsoleTable.h}}
}
/console-utilities/include/ConsoleTable.h 

\subsubsection*{Data Structures}
\begin{CompactItemize}
\item 
struct \hyperlink{structConsoleTable}{ConsoleTable}
\item 
struct \hyperlink{structConsoleTable_1_1Field}{ConsoleTable::Field}
\end{CompactItemize}
\subsubsection*{Defines}
\begin{CompactItemize}
\item 
\#define \hyperlink{ConsoleTable_8h_ce17fb00125e1278aa8ea9abd5ada049}{CONSOLE\_\-TABLE\_\-FIELD\_\-NAME\_\-MAXLEN}~80
\item 
\#define \hyperlink{ConsoleTable_8h_29b565026b62c53fa294d2e52ebe11fd}{CONSOLE\_\-TABLE\_\-MAX\_\-SEPARATOR\_\-LEN}~10
\item 
\#define \hyperlink{ConsoleTable_8h_af5e7127deb101ff50441b07ae0ee27d}{CONSOLE\_\-TABLE\_\-DEFAULT\_\-COL\_\-DELIMITER}~\char`\"{}$|$\char`\"{}
\end{CompactItemize}
\subsubsection*{Typedefs}
\begin{CompactItemize}
\item 
typedef struct \hyperlink{structConsoleTable}{ConsoleTable} \hyperlink{ConsoleTable_8h_42668d94eacfa142c34c56afdcd077de}{ConsoleTableT}
\end{CompactItemize}
\subsubsection*{Enumerations}
\begin{CompactItemize}
\item 
enum \hyperlink{ConsoleTable_8h_b5b27d58bf82fd9061aad8020009ab08}{ConsoleTableAlignment} \{ \hyperlink{ConsoleTable_8h_b5b27d58bf82fd9061aad8020009ab0870aedb5e1d079b2fad024a249b7c43fc}{CONSOLE\_\-TABLE\_\-ALIGNMENT\_\-LEFT}, 
\hyperlink{ConsoleTable_8h_b5b27d58bf82fd9061aad8020009ab08279b59600b0c3b0136d434e76bd98d45}{CONSOLE\_\-TABLE\_\-ALIGNMENT\_\-RIGHT}
 \}
\end{CompactItemize}
\subsubsection*{Functions}
\begin{CompactItemize}
\item 
\hyperlink{structConsoleTable}{ConsoleTableT} $\ast$ \hyperlink{ConsoleTable_8h_891d346f3b16d529f741c1890671330c}{ConsoleTableCreate} ()
\item 
int \hyperlink{ConsoleTable_8h_d3aca510bbf7f9da3cbe005d41540ff6}{ConsoleTableAddField} (\hyperlink{structConsoleTable}{ConsoleTableT} $\ast$tableObj, unsigned width, const char $\ast$name, enum \hyperlink{ConsoleTable_8h_b5b27d58bf82fd9061aad8020009ab08}{ConsoleTableAlignment} alignment)
\item 
void \hyperlink{ConsoleTable_8h_c75640e19215ab9f9bf670c8087ef975}{ConsoleTableDelete} (\hyperlink{structConsoleTable}{ConsoleTableT} $\ast$tableObj)
\item 
void \hyperlink{ConsoleTable_8h_eb0067f39159604e9219a87ad9ef5085}{ConsoleTablePrintHeader} (\hyperlink{structConsoleTable}{ConsoleTableT} $\ast$tableObj)
\item 
void \hyperlink{ConsoleTable_8h_cfefd3ef42c76fe92e9eee827f6d5dd5}{ConsoleTableFillCell} (\hyperlink{structConsoleTable}{ConsoleTableT} $\ast$tableObj, const char $\ast$content)
\item 
void \hyperlink{ConsoleTable_8h_de018b8023a95016f4f5c9ec8cc75f86}{ConsoleTableSetLinePrepend} (\hyperlink{structConsoleTable}{ConsoleTableT} $\ast$tableObj, const char $\ast$prependstr)
\item 
void \hyperlink{ConsoleTable_8h_52059ce419248a8453b46022ad98fc20}{ConsoleTableSetLineAppend} (\hyperlink{structConsoleTable}{ConsoleTableT} $\ast$tableObj, const char $\ast$appendStr)
\item 
void \hyperlink{ConsoleTable_8h_a4552d39aca27bca9d5aca4f4141fcdf}{ConsoleTableSetColDelimiter} (\hyperlink{structConsoleTable}{ConsoleTableT} $\ast$tableObj, const char $\ast$colDelimiterStr)
\item 
void \hyperlink{ConsoleTable_8h_0beb5d8017f2512af05d5d43fec9441c}{ConsoleTableSetPadding} (\hyperlink{structConsoleTable}{ConsoleTableT} $\ast$tableObj, unsigned padding)
\end{CompactItemize}


\subsubsection{Detailed Description}
/console-utilities/include/ConsoleTable.h 

\begin{Desc}
\item[Date:]22/03/2010 \end{Desc}
\begin{Desc}
\item[Author:]Matheus Neder $<$\href{mailto:matheusneder@gmail.com}{\tt matheusneder@gmail.com}$>$ \end{Desc}


Definition in file \hyperlink{ConsoleTable_8h-source}{ConsoleTable.h}.

\subsubsection{Define Documentation}
\hypertarget{ConsoleTable_8h_af5e7127deb101ff50441b07ae0ee27d}{
\index{ConsoleTable.h@{ConsoleTable.h}!CONSOLE\_\-TABLE\_\-DEFAULT\_\-COL\_\-DELIMITER@{CONSOLE\_\-TABLE\_\-DEFAULT\_\-COL\_\-DELIMITER}}
\index{CONSOLE\_\-TABLE\_\-DEFAULT\_\-COL\_\-DELIMITER@{CONSOLE\_\-TABLE\_\-DEFAULT\_\-COL\_\-DELIMITER}!ConsoleTable.h@{ConsoleTable.h}}
\paragraph[CONSOLE\_\-TABLE\_\-DEFAULT\_\-COL\_\-DELIMITER]{\setlength{\rightskip}{0pt plus 5cm}\#define CONSOLE\_\-TABLE\_\-DEFAULT\_\-COL\_\-DELIMITER~\char`\"{}$|$\char`\"{}}\hfill}
\label{ConsoleTable_8h_af5e7127deb101ff50441b07ae0ee27d}




Definition at line 33 of file ConsoleTable.h.

Referenced by ConsoleTableCreate().\hypertarget{ConsoleTable_8h_ce17fb00125e1278aa8ea9abd5ada049}{
\index{ConsoleTable.h@{ConsoleTable.h}!CONSOLE\_\-TABLE\_\-FIELD\_\-NAME\_\-MAXLEN@{CONSOLE\_\-TABLE\_\-FIELD\_\-NAME\_\-MAXLEN}}
\index{CONSOLE\_\-TABLE\_\-FIELD\_\-NAME\_\-MAXLEN@{CONSOLE\_\-TABLE\_\-FIELD\_\-NAME\_\-MAXLEN}!ConsoleTable.h@{ConsoleTable.h}}
\paragraph[CONSOLE\_\-TABLE\_\-FIELD\_\-NAME\_\-MAXLEN]{\setlength{\rightskip}{0pt plus 5cm}\#define CONSOLE\_\-TABLE\_\-FIELD\_\-NAME\_\-MAXLEN~80}\hfill}
\label{ConsoleTable_8h_ce17fb00125e1278aa8ea9abd5ada049}




Definition at line 29 of file ConsoleTable.h.

Referenced by ConsoleTableAddField().\hypertarget{ConsoleTable_8h_29b565026b62c53fa294d2e52ebe11fd}{
\index{ConsoleTable.h@{ConsoleTable.h}!CONSOLE\_\-TABLE\_\-MAX\_\-SEPARATOR\_\-LEN@{CONSOLE\_\-TABLE\_\-MAX\_\-SEPARATOR\_\-LEN}}
\index{CONSOLE\_\-TABLE\_\-MAX\_\-SEPARATOR\_\-LEN@{CONSOLE\_\-TABLE\_\-MAX\_\-SEPARATOR\_\-LEN}!ConsoleTable.h@{ConsoleTable.h}}
\paragraph[CONSOLE\_\-TABLE\_\-MAX\_\-SEPARATOR\_\-LEN]{\setlength{\rightskip}{0pt plus 5cm}\#define CONSOLE\_\-TABLE\_\-MAX\_\-SEPARATOR\_\-LEN~10}\hfill}
\label{ConsoleTable_8h_29b565026b62c53fa294d2e52ebe11fd}




Definition at line 31 of file ConsoleTable.h.

Referenced by ConsoleTableSetColDelimiter(), ConsoleTableSetLineAppend(), and ConsoleTableSetLinePrepend().

\subsubsection{Typedef Documentation}
\hypertarget{ConsoleTable_8h_42668d94eacfa142c34c56afdcd077de}{
\index{ConsoleTable.h@{ConsoleTable.h}!ConsoleTableT@{ConsoleTableT}}
\index{ConsoleTableT@{ConsoleTableT}!ConsoleTable.h@{ConsoleTable.h}}
\paragraph[ConsoleTableT]{\setlength{\rightskip}{0pt plus 5cm}typedef struct {\bf ConsoleTable} {\bf ConsoleTableT}}\hfill}
\label{ConsoleTable_8h_42668d94eacfa142c34c56afdcd077de}




Definition at line 57 of file ConsoleTable.h.

\subsubsection{Enumeration Type Documentation}
\hypertarget{ConsoleTable_8h_b5b27d58bf82fd9061aad8020009ab08}{
\index{ConsoleTable.h@{ConsoleTable.h}!ConsoleTableAlignment@{ConsoleTableAlignment}}
\index{ConsoleTableAlignment@{ConsoleTableAlignment}!ConsoleTable.h@{ConsoleTable.h}}
\paragraph[ConsoleTableAlignment]{\setlength{\rightskip}{0pt plus 5cm}enum {\bf ConsoleTableAlignment}}\hfill}
\label{ConsoleTable_8h_b5b27d58bf82fd9061aad8020009ab08}


\begin{Desc}
\item[Enumerator: ]\par
\begin{description}
\index{CONSOLE\_\-TABLE\_\-ALIGNMENT\_\-LEFT@{CONSOLE\_\-TABLE\_\-ALIGNMENT\_\-LEFT}!ConsoleTable.h@{ConsoleTable.h}}\index{ConsoleTable.h@{ConsoleTable.h}!CONSOLE\_\-TABLE\_\-ALIGNMENT\_\-LEFT@{CONSOLE\_\-TABLE\_\-ALIGNMENT\_\-LEFT}}\item[{\em 
\hypertarget{ConsoleTable_8h_b5b27d58bf82fd9061aad8020009ab0870aedb5e1d079b2fad024a249b7c43fc}{
CONSOLE\_\-TABLE\_\-ALIGNMENT\_\-LEFT}
\label{ConsoleTable_8h_b5b27d58bf82fd9061aad8020009ab0870aedb5e1d079b2fad024a249b7c43fc}
}]\index{CONSOLE\_\-TABLE\_\-ALIGNMENT\_\-RIGHT@{CONSOLE\_\-TABLE\_\-ALIGNMENT\_\-RIGHT}!ConsoleTable.h@{ConsoleTable.h}}\index{ConsoleTable.h@{ConsoleTable.h}!CONSOLE\_\-TABLE\_\-ALIGNMENT\_\-RIGHT@{CONSOLE\_\-TABLE\_\-ALIGNMENT\_\-RIGHT}}\item[{\em 
\hypertarget{ConsoleTable_8h_b5b27d58bf82fd9061aad8020009ab08279b59600b0c3b0136d434e76bd98d45}{
CONSOLE\_\-TABLE\_\-ALIGNMENT\_\-RIGHT}
\label{ConsoleTable_8h_b5b27d58bf82fd9061aad8020009ab08279b59600b0c3b0136d434e76bd98d45}
}]\end{description}
\end{Desc}



Definition at line 35 of file ConsoleTable.h.

\subsubsection{Function Documentation}
\hypertarget{ConsoleTable_8h_d3aca510bbf7f9da3cbe005d41540ff6}{
\index{ConsoleTable.h@{ConsoleTable.h}!ConsoleTableAddField@{ConsoleTableAddField}}
\index{ConsoleTableAddField@{ConsoleTableAddField}!ConsoleTable.h@{ConsoleTable.h}}
\paragraph[ConsoleTableAddField]{\setlength{\rightskip}{0pt plus 5cm}int ConsoleTableAddField ({\bf ConsoleTableT} $\ast$ {\em tableObj}, \/  unsigned {\em width}, \/  const char $\ast$ {\em name}, \/  enum {\bf ConsoleTableAlignment} {\em alignment})}\hfill}
\label{ConsoleTable_8h_d3aca510bbf7f9da3cbe005d41540ff6}




Definition at line 48 of file ConsoleTable.c.

References ConsoleTable::Field::alignment, CONSOLE\_\-TABLE\_\-FIELD\_\-NAME\_\-MAXLEN, ConsoleTable::fields, ConsoleTable::Field::name, ConsoleTable::numFields, and ConsoleTable::Field::width.\hypertarget{ConsoleTable_8h_891d346f3b16d529f741c1890671330c}{
\index{ConsoleTable.h@{ConsoleTable.h}!ConsoleTableCreate@{ConsoleTableCreate}}
\index{ConsoleTableCreate@{ConsoleTableCreate}!ConsoleTable.h@{ConsoleTable.h}}
\paragraph[ConsoleTableCreate]{\setlength{\rightskip}{0pt plus 5cm}{\bf ConsoleTableT}$\ast$ ConsoleTableCreate ()}\hfill}
\label{ConsoleTable_8h_891d346f3b16d529f741c1890671330c}




Definition at line 32 of file ConsoleTable.c.

References ConsoleTable::colDelimiter, CONSOLE\_\-TABLE\_\-DEFAULT\_\-COL\_\-DELIMITER, ConsoleTable::fields, ConsoleTable::lineAppend, ConsoleTable::linePrepend, ConsoleTable::numFields, and ConsoleTable::padding.\hypertarget{ConsoleTable_8h_c75640e19215ab9f9bf670c8087ef975}{
\index{ConsoleTable.h@{ConsoleTable.h}!ConsoleTableDelete@{ConsoleTableDelete}}
\index{ConsoleTableDelete@{ConsoleTableDelete}!ConsoleTable.h@{ConsoleTable.h}}
\paragraph[ConsoleTableDelete]{\setlength{\rightskip}{0pt plus 5cm}void ConsoleTableDelete ({\bf ConsoleTableT} $\ast$ {\em tableObj})}\hfill}
\label{ConsoleTable_8h_c75640e19215ab9f9bf670c8087ef975}




Definition at line 172 of file ConsoleTable.c.

References ConsoleTable::fields.\hypertarget{ConsoleTable_8h_cfefd3ef42c76fe92e9eee827f6d5dd5}{
\index{ConsoleTable.h@{ConsoleTable.h}!ConsoleTableFillCell@{ConsoleTableFillCell}}
\index{ConsoleTableFillCell@{ConsoleTableFillCell}!ConsoleTable.h@{ConsoleTable.h}}
\paragraph[ConsoleTableFillCell]{\setlength{\rightskip}{0pt plus 5cm}void ConsoleTableFillCell ({\bf ConsoleTableT} $\ast$ {\em tableObj}, \/  const char $\ast$ {\em content})}\hfill}
\label{ConsoleTable_8h_cfefd3ef42c76fe92e9eee827f6d5dd5}




Definition at line 140 of file ConsoleTable.c.

References ConsoleTableFillCellHelper(), ConsoleTable::lineAppend, ConsoleTable::linePrepend, and ConsoleTable::numFields.\hypertarget{ConsoleTable_8h_eb0067f39159604e9219a87ad9ef5085}{
\index{ConsoleTable.h@{ConsoleTable.h}!ConsoleTablePrintHeader@{ConsoleTablePrintHeader}}
\index{ConsoleTablePrintHeader@{ConsoleTablePrintHeader}!ConsoleTable.h@{ConsoleTable.h}}
\paragraph[ConsoleTablePrintHeader]{\setlength{\rightskip}{0pt plus 5cm}void ConsoleTablePrintHeader ({\bf ConsoleTableT} $\ast$ {\em tableObj})}\hfill}
\label{ConsoleTable_8h_eb0067f39159604e9219a87ad9ef5085}




Definition at line 161 of file ConsoleTable.c.

References ConsoleTableFillCellHelper(), ConsoleTable::fields, ConsoleTable::lineAppend, ConsoleTable::linePrepend, ConsoleTable::Field::name, and ConsoleTable::numFields.\hypertarget{ConsoleTable_8h_a4552d39aca27bca9d5aca4f4141fcdf}{
\index{ConsoleTable.h@{ConsoleTable.h}!ConsoleTableSetColDelimiter@{ConsoleTableSetColDelimiter}}
\index{ConsoleTableSetColDelimiter@{ConsoleTableSetColDelimiter}!ConsoleTable.h@{ConsoleTable.h}}
\paragraph[ConsoleTableSetColDelimiter]{\setlength{\rightskip}{0pt plus 5cm}void ConsoleTableSetColDelimiter ({\bf ConsoleTableT} $\ast$ {\em tableObj}, \/  const char $\ast$ {\em colDelimiterStr})}\hfill}
\label{ConsoleTable_8h_a4552d39aca27bca9d5aca4f4141fcdf}




Definition at line 82 of file ConsoleTable.c.

References ConsoleTable::colDelimiter, and CONSOLE\_\-TABLE\_\-MAX\_\-SEPARATOR\_\-LEN.\hypertarget{ConsoleTable_8h_52059ce419248a8453b46022ad98fc20}{
\index{ConsoleTable.h@{ConsoleTable.h}!ConsoleTableSetLineAppend@{ConsoleTableSetLineAppend}}
\index{ConsoleTableSetLineAppend@{ConsoleTableSetLineAppend}!ConsoleTable.h@{ConsoleTable.h}}
\paragraph[ConsoleTableSetLineAppend]{\setlength{\rightskip}{0pt plus 5cm}void ConsoleTableSetLineAppend ({\bf ConsoleTableT} $\ast$ {\em tableObj}, \/  const char $\ast$ {\em appendStr})}\hfill}
\label{ConsoleTable_8h_52059ce419248a8453b46022ad98fc20}




Definition at line 76 of file ConsoleTable.c.

References CONSOLE\_\-TABLE\_\-MAX\_\-SEPARATOR\_\-LEN, and ConsoleTable::lineAppend.\hypertarget{ConsoleTable_8h_de018b8023a95016f4f5c9ec8cc75f86}{
\index{ConsoleTable.h@{ConsoleTable.h}!ConsoleTableSetLinePrepend@{ConsoleTableSetLinePrepend}}
\index{ConsoleTableSetLinePrepend@{ConsoleTableSetLinePrepend}!ConsoleTable.h@{ConsoleTable.h}}
\paragraph[ConsoleTableSetLinePrepend]{\setlength{\rightskip}{0pt plus 5cm}void ConsoleTableSetLinePrepend ({\bf ConsoleTableT} $\ast$ {\em tableObj}, \/  const char $\ast$ {\em prependstr})}\hfill}
\label{ConsoleTable_8h_de018b8023a95016f4f5c9ec8cc75f86}




Definition at line 70 of file ConsoleTable.c.

References CONSOLE\_\-TABLE\_\-MAX\_\-SEPARATOR\_\-LEN, and ConsoleTable::linePrepend.\hypertarget{ConsoleTable_8h_0beb5d8017f2512af05d5d43fec9441c}{
\index{ConsoleTable.h@{ConsoleTable.h}!ConsoleTableSetPadding@{ConsoleTableSetPadding}}
\index{ConsoleTableSetPadding@{ConsoleTableSetPadding}!ConsoleTable.h@{ConsoleTable.h}}
\paragraph[ConsoleTableSetPadding]{\setlength{\rightskip}{0pt plus 5cm}void ConsoleTableSetPadding ({\bf ConsoleTableT} $\ast$ {\em tableObj}, \/  unsigned {\em padding})}\hfill}
\label{ConsoleTable_8h_0beb5d8017f2512af05d5d43fec9441c}




Definition at line 88 of file ConsoleTable.c.

References ConsoleTable::padding.